const $setting = {
    // 接口请求地址
    // baseUrl: "https://cdemo.jiumaioda.com/api", // 测试
	baseUrl: "http://192.168.1.15:9001/api", // 测试
	// baseUrl: "https://api.jiumaioda.com/api", // 正式
	
	// 
	appId: 10001,
	
	// 长链接地址
	socketUrl: "", // 测试
	// socketUrl: "", // 正式
	
	// 小程序静态资源地址
	imageUrl: "https://ossimg.jiumaioda.com/wechat/",
	
	// 小程序静态资源地址
	imgUrl: "https://ossimg.jiumaioda.com/wechat",
	
	// 默认头像
	// avatarUrl: 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0',
	avatarUrl: 'https://ossimg.jiumaioda.com/wechat/avatar.png',
	
	// 阿里云
	aliyunConfig: {
		accessid: '',
		accesskey: '',
		osshost: '',
	},
	
	// 腾讯地图key
	tencentMapKay: 'NFJBZ-2HZWT-PGWXP-L6YQZ-3UYRV-OUF4D',
	
	// css外的主题色
	colorTheme: '#BB0024',
}

uni.$setting = $setting;

const install = Vue => {
	Vue.prototype.$setting = {
		baseUrl: function() {return $setting.baseUrl},
		uploadUrl: function() {return $setting.uploadUrl},
		socketUrl: function() {return $setting.socketUrl},
		imageUrl: function() {return $setting.imageUrl},
		imgUrl: function() {return $setting.imgUrl},
		avatarUrl: function() {return $setting.avatarUrl},
		aliyunConfig: function() {return $setting.aliyunConfig},
		tencentMapKay: function() {return $setting.tencentMapKay},
		colorTheme: function() {return $setting.colorTheme},
	}
}

export default {
	install
}

